

const { ccclass, property } = cc._decorator;

@ccclass
export default class GameManager extends cc.Component {

    @property(cc.Node)
    content: cc.Node = null;

    @property(cc.Prefab)
    gamePanel: cc.Prefab = null;

    @property(cc.Prefab)
    infoPanel: cc.Prefab = null;

    @property(cc.Prefab)
    eventContent: cc.Prefab = null;

    private _gamePanel = null;
    start() {

        let node: cc.Node = null;
        node = cc.instantiate(this.gamePanel);
        node.setParent(this.content);

        node = cc.instantiate(this.infoPanel);
        node.setParent(this.content);

        node = cc.instantiate(this.eventContent);
        node.setParent(this.content);
    }


}
